package com.vogue.supplymall.order.domain.dao;

import com.vogue.supplymall.common.domain.dto.OrderDetailInfo;
import com.vogue.supplymall.common.domain.dto.SearchOrderInfo;
import com.vogue.supplymall.order.domain.model.Order;

import java.util.List;
import java.util.Map;

/**
 * The interface Order dao.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-01-10
 */
public interface OrderDao extends BaseDao<Order, Long> {

    List<Map<String,Object>> findOrderDetail(OrderDetailInfo detailInfo);
    List<Map<String,Object>> findOrderList(SearchOrderInfo searchOrderInfo);
    List<Map<String,Object>> findOrderCount(SearchOrderInfo searchOrderInfo);
    /**
     * 更新订单评价状态
     * type 0:未评价 1:已评价
     */
    public void updateOrderCommentFlag(Long orderId,Long productId,int type);

    /**
     * 获取订单实体
     * @param ordernumber
     * @param syscodeid
     * @return
     */
    Order getOrder(String ordernumber, Long syscodeid);
}
